{echo:JS::import('dialog?skin=brief');}
{echo:JS::import('dialogtools');}
{echo:JS::import('form');}
<form action="" method="post">
<div class="tools_bar clearfix">
    <a class="icon-checkbox-checked icon-checkbox-unchecked" href="javascript:;" onclick="tools_select('id[]',this)" title="全选" data="true"> 全选 </a>
    <a class="icon-delicious" href="{url:/customer/zz_list}"> 全部记录</a>
    <span class="fr"><a href='javascript:;' id="condition" class="icon-search" style="" > 筛选条件</a><input id="condition_input" type="hidden" name="condition" value="{$condition}"></span>
</div>
<table class="default">
    <tr>
        <!--<th>操作</th>-->
        <th>转出用户</th>
        <th>转入账户</th>
        <th>转账金额</th>
        <th>类型</th>
        <th>时间</th>
        <th>备注</th>
    </tr>
    {query:name=zz where=$where id=$obj page=1 order=id desc pagesize=20 }
        <tr>
        	<!--<td style="width:70px" class="btn_min"></td>-->
        	<td>{echo:Common::get_user_obj($item['from_user_id'])['name']}</td>
        	<td>{echo:Common::get_user_obj($item['to_user_id'])['name']}</td>
        	<td>{$item['je']}</td>
        	<td>
        		{if:$item['lx']=='xjf'}
        			现金分
        		{/if}
        	</td>
        	<td>{$item['time']}</td>
        	<td>{$item['bz']}</td>
        </tr>
    {/query}
</table>
</form>
<div class="page_nav">
{echo:$obj->pageBar()}
</div>
<script type="text/javascript">
    var form =  new Form();
    $("#condition").on("click",function(){
        $("body").Condition({input:"#condition_input",okVal:'高级搜索',callback:function(data){tools_submit({action:'{url:/customer/zz_list}',method:'get'});},data:{'uname':{name:'转出用户'},'toname':{name:'转入用户'},'je':{name:'转账金额'},'time':{name:'转账时间'}
        }});
    });
    function withdrawAction(id)
    {
        art.dialog.open("{url:/customer/withdraw_view/id/}"+id,{id:'withdraw-dialog',title:"审批",width:620});
    }
    function close_dialog()
    {
        art.dialog({id:"withdraw-dialog"}).close();
        tools_reload();
    }
</script>
